/**
  * 登录 接口的统一出口
  */
import axios from './http'; // 导入http中创建的axios实例
import qs from 'qs'; // 根据需求是否导入qs模块，把请求字段直接映射过来


const api = '/api/v1/user/';

const user = {
    idcard(params) {
        return axios.post(api + 'idcard', qs.stringify(params));
    },
    pwd(params) {
        return axios.post(api + 'pwd', qs.stringify(params));
    },
    phone(params) {
        return axios.post(api + 'phone', qs.stringify(params));
    },
    paypwd(params) {
        return axios.post(api + 'paypwd', qs.stringify(params));
    },
    withdraw(params) {
        return axios.post(api + 'withdraw', qs.stringify(params));
    },
    withdrawinfo(params) {
        return axios.post(api + 'withdrawinfo', qs.stringify(params));
    },
    info(params) {
        return axios.post(api + 'info', qs.stringify(params));
    },
    logout(params) {
        return axios.post(api + 'logout', qs.stringify(params));
    },
}


// 导出接口
export default user
